<?php
$CI =& get_instance();
$CI->load->library('pagination');
$CI->load->model('Model_store', 'model_store');
$id = $this->uri->segment(4, 7);
$store = $CI->model_store->find($id);
?>
<div class="store-cont">
	<div class="image">
		<img src="<?=$store['image']?>" alt="<?=$store['company_name']?>"/>
	</div>
	<div class="meta">
		<h1><?=$store['title']?></h1>
		<div class="address">
			<p><?=$store['address']?></p>
			<p><?=$store['city']?> ,<?=$store['state']?> <?=$store['zipcode']?></p>
		</div>
		<div class="phone">
			<div><?=$store['home_phone']?></div>
		</div>
		<?php if(!empty($store['website'])):?>
			<div class="website"><a href="<?=$store['website']?>" title="Website" target="_blank"><?=$store['website']?></a></div>
		<?php endif;?>
		<?php if(!empty($store['email'])):?>
			<div class="email"><a href="mailto:<?=$store['email']?>" title="Send Email"><?=$store['email']?></a></div>
		<?php endif;?>
		<p><label><?=lang('business-hour');?></label>: <?=$store['business_hour']?></p>
	</div>
	<div class="clearfix"></div>
	<div>
		<ul class="tabs">
			<li><a href="#">Overview</a></li>
			<li><a href="#">Services</a></li>
			<li><a href="#">Location</a></li>
			<li><a href="#">Coupons</a></li>
		</ul>
		<!-- tab "panes" -->
		<div class="panes">
			<div><?=$store['desc']?></div>
			<div><?=$store['menu']?></div>
			<div>
				<div class="google-map"><?=$store['google_map']?></div>
			</div>
			<div><?=$store['coupon']?></div>
		</div>
	</div>
	<div class="clearfix"></div>
</div>
<script type="text/javascript">
$(function() {
	// setup ul.tabs to work as tabs for each div directly under div.panes
	$("ul.tabs").tabs("div.panes > div");
});
</script>
